$.fn.uiSearch = function() {
    var ui = $(this);
    console.log('function');
    $('.ui-search-selected').on('click', function (event) {
        $('.ui-search-select-list').show();
        return false;
    });
    $('.ui-search-select-list a').on('click', function() {
        $('.ui-search-input').val($(this).text());
        $('.ui-search-select-list').hide();
        return false;
    });
};

$(function() {
    $('ui-search').uiSearch();
});